package top.yongyan0624.service;

import top.yongyan0624.entity.Count;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Set;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author yongyan
 * @since 2021-05-19
 */
public interface CountService extends IService<Count> {

    void setCount(Count count);

    void handleCache(Count count);

    /**
     * 将Redis里的点赞数据存入数据库中
     */
    void transCountFromRedis();

    /**
     * 将Redis中的点赞数量数据存入数据库
     */
    void transCountInfoFromRedis();
}
